/* RESET RULES CONFIG */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f7f4ed;
    color: #222222;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* TOP MINI HEADER BAR STRAP */
.top-bar {
    background-color: #051021;
    color: #ffffff;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    padding: 10px 8%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* MAIN HEADER NAVIGATION SYSTEM */
.main-header {
    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 8%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    height: 6rem;
}

.logo-area { display: flex; align-items: center; gap: 12px; }
.logo-title {
    font-family: 'Cinzel', serif;
    font-size: 22px;
    font-weight: 600;
    color: #0a2540;
    letter-spacing: 1px;
}
.logo-subtitle { font-size: 10px; letter-spacing: 2px; color: #666; }

.nav-links { display: flex; gap: 30px; font-size: 14px; font-weight: 500; }
.nav-links a.active { color: #0a2540; font-weight: 600; }

.btn-assessment {
    background-color: #0f233c; color: white; padding: 12px 24px;
    border-radius: 25px; border: none; font-weight: 500; cursor: pointer;
}

/* NAVIGATION DROPDOWN CONTROLS MUX */
.dropdown { position: relative; display: inline-block; }
.dropdown-content {
    display: none; position: absolute; background-color: #ffffff; min-width: 220px;
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.15); border-radius: 8px; padding: 10px 0;
    top: 100%; left: 0; z-index: 1000;
}
.dropdown-content a { color: #444444 !important; padding: 12px 20px; display: block; font-size: 14px; font-weight: 500; }
.dropdown-content a:hover { background-color: #faf8f5; color: #0a2540 !important; }
.dropdown:hover .dropdown-content { display: block; }

/* HERO DISPLAY BLOCK GRAPHICS ENGINE */
.tool-hero-section {
    background-color: #07162c;
    color: #ffffff;
    padding: 60px 8% 80px 8%;
    position: relative;
}

.tool-hero-container { max-width: 1200px; margin: 0 auto; }
.back-to-tools { font-size: 14px; color: #94a3b8; display: inline-block; margin-bottom: 30px; }
.tool-badge { display: flex; align-items: center; gap: 8px; margin-bottom: 15px; }
.badge-text { font-size: 11px; letter-spacing: 2px; color: #cbd5e1; font-weight: 500; text-transform: uppercase; }

.tool-hero-section h1 {
    font-family: 'Cinzel', serif;
    font-size: 44px;
    font-weight: 400;
    margin-bottom: 12px;
}
.tool-hero-section p { font-size: 16px; color: #94a3b8; }

.valor-health-badge-top {
    position: absolute; right: 8%; top: 60px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 16px; border-radius: 20px; font-size: 12px; letter-spacing: 1.5px; color: #cbd5e1;
}

/* APP MAIN CONTENT FIELD MATRIX */
.tool-main-content {
    padding: 60px 8% 100px 8%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -40px;
}

.tracker-card {
    background: #ffffff;
    width: 100%;
    max-width: 1000px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    padding: 50px 40px;
    border: 1px solid #f0eae1;
}

.tracker-input-row {
    margin-bottom: 24px;
}

.input-title-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    margin-bottom: 10px;
}

/* INTENSITY OVERRIDE THUMB RUNNER SLIDER */
.range-slider-element {
    width: 100%;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
    margin: 12px 0;
}

.range-slider-element::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* TEXT AREA AND TEXT FIELD OVERRIDES BASED ON SCREENSHOT MATRICES */
.custom-field-text-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    font-family: inherit;
    color: #1e293b;
    background-color: #fdfcf9;
    border: 1px solid #ebd9c8; /* Soft subtle colored input line matching image */
    border-radius: 8px;
    outline: none;
}

.custom-field-textarea-input {
    width: 100%;
    height: 110px;
    padding: 14px 18px;
    font-size: 15px;
    font-family: inherit;
    color: #1e293b;
    background-color: #fdfcf9;
    border: 1px solid #ebd9c8;
    border-radius: 8px;
    outline: none;
    resize: none;
}

.custom-field-text-input:focus, .custom-field-textarea-input:focus {
    border-color: #0f233c;
}

/* LOG BUTTON PARAMETER ARCHITECTURE */
.btn-log-craving {
    background-color: #051021; /* Solid dark color tracking code */
    color: #ffffff;
    border: none;
    font-size: 14px;
    font-weight: 500;
    padding: 14px 28px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
}

.btn-log-craving:hover {
    background-color: #0f233c;
}

.tracker-disclaimer {
    background-color: #faf6f0;
    border-radius: 8px;
    padding: 16px 24px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin-top: 40px;
}

/* INLINE LINK PHONE BANNER */
.talk-prompt-bar {
    width: 100%; max-width: 1000px; background-color: #f1ede4;
    border-radius: 12px; margin-top: 40px; padding: 20px 40px;
    display: flex; justify-content: space-between; align-items: center;
}
.talk-prompt-bar span { font-size: 15px; color: #334155; }
.btn-phone-inline { background-color: #0f233c; color: #ffffff; padding: 12px 24px; border-radius: 25px; font-size: 14px; }

/* RED CRISIS BANNER MODULE */
.crisis-banner { background-color: #d63f3f; color: white; text-align: center; padding: 15px; font-size: 14px; font-weight: 500; }

/* REUSABLE STABLE GLOBAL FOOTER BLOCK */
.main-footer { background-color: #040d1a; color: #94a3b8; padding: 70px 8% 30px 8%; font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 1fr 2.5fr; gap: 60px; margin-bottom: 40px; }
.logo-area.light .logo-title { color: #ffffff; }
.brand-desc { margin-top: 20px; line-height: 1.6; color: #cbd5e1; }
.footer-contact-info { margin-top: 25px; }
.footer-contact-info p { margin-bottom: 10px; color: #ffffff; }
.footer-links-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.footer-links-grid h4 { color: #ffffff; font-size: 11px; letter-spacing: 1.5px; margin-bottom: 20px; }
.footer-links-grid ul { list-style: none; }
.footer-links-grid ul li { margin-bottom: 12px; }
.footer-links-grid ul li a { color: #94a3b8; font-size: 13px; }
.footer-divider { border: none; border-top: 1px solid rgba(255, 255, 255, 0.08); margin: 40px 0; }
.tools-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; }
.tools-tag { font-size: 11px; letter-spacing: 1.5px; color: #d1b894; display: block; margin-bottom: 8px; }
.tools-header h3 { color: #ffffff; font-family: 'Cinzel', serif; font-size: 24px; }
.btn-toolkit { color: #ffffff; border-bottom: 1px solid #ffffff; padding-bottom: 4px; font-size: 14px; }
.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.tools-grid ul { list-style: none; }
.tools-grid ul li { margin-bottom: 12px; }
.tools-grid ul li a { color: #94a3b8; font-size: 13px; }
.footer-bottom { display: flex; justify-content: space-between; font-size: 12px; color: #64748b; margin-top: 20px; }
.legal-links a { margin-left: 20px; color: #64748b; }

/* ACTION FLOATING CORE MODALS CHAT */
.chat-widget { position: fixed; bottom: 25px; z-index: 999; cursor: pointer; border-radius: 50px; display: flex; align-items: center; justify-content: center; }
.left-widget { left: 25px; background-color: #22c55e; width: 45px; height: 45px; font-size: 20px; }
.right-widget { right: 25px; background-color: #0f233c; color: white; padding: 12px 22px; font-size: 14px; }

@media (max-width: 768px) {
    .footer-links-grid { grid-template-columns: repeat(2, 1fr); }
    .tools-grid { grid-template-columns: repeat(2, 1fr); }
    .talk-prompt-bar { flex-direction: column; gap: 15px; }
}